<template>
	<view class="main">
		<view class="list">
			<view class="item" v-for="(item, index) in list" :key="index" @click="goDetails(item)">
				<image class="img" :src="item.logo" mode="aspectFill" lazy-load></image>
				<view class="item_right">
					<view class="title">{{ item.name }}</view>
					<view class="good_services" v-if="item.good_services.length > 0">擅长服务：{{ item.good_services.join('、') }}</view>
					<view class="address">
						<u-icon name="map-fill" size="12" color="#dcdcdc"></u-icon>
						  {{ item.city.replace("-", "/") }}
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script type="text/javascript" src="plus-confusion://../pages/servicePro/index.js"></script>

<style lang="scss">
.main {
	.list {
		padding: 0 32rpx;

		.item {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-bottom: 60rpx;

			.img {
				width: 110rpx;
				height: 110rpx;
				display: inline-block;
			}

			.item_right {
				width: calc(100% - 150rpx);

				.title {
					font-size: 32rpx;
					font-weight: 600;
					color: #333333;
					line-height: 38rpx;
				}

				.good_services {
					overflow: hidden;
					text-overflow: ellipsis;
					display: -webkit-box;
					-webkit-line-clamp: 1;
					-webkit-box-orient: vertical;
					font-size: 24rpx;
					color: #666666;
					line-height: 28rpx;
					margin-top: 16rpx;
				}

				.address {
					margin-top: 16rpx;
					display: flex;
					align-items: center;
					font-size: 24rpx;
					color: #999999;
					line-height: 28rpx;
				}
			}
		}
	}
}
</style>
